]> dgit.raspbian.org Git - linux-4.9.git/commit
smsc75xx: use skb_cow_head() to deal with cloned skbs
authorEric Dumazet <edumazet@google.com>
Wed, 19 Apr 2017 16:59:21 +0000 (09:59 -0700)
committerpopcornmix <popcornmix@gmail.com>
Sat, 22 Apr 2017 17:24:30 +0000 (18:24 +0100)
commitc7cfbb473c1eed52320c8d3c71d368c60590a375
treec780d18cb2863646a09b94f49fd2c651df03b43c
parent751423f046b33fd0d687b6bc5fc2aa3a22087fda
smsc75xx: use skb_cow_head() to deal with cloned skbs

We need to ensure there is enough headroom to push extra header,
but we also need to check if we are allowed to change headers.

skb_cow_head() is the proper helper to deal with this.

Fixes: d0cad871703b ("smsc75xx: SMSC LAN75xx USB gigabit ethernet adapter driver")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: James Hughes <james.hughes@raspberrypi.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c